package service;

import pojo.Book;
import pojo.BookPage;
import pojo.Category;

import java.util.List;
import java.util.Map;

/**
 * Created by Tiler on 2020/11/4
 */
public interface BookService {
    public BookPage getAllBooks(Map<String, Object> params);
    public Integer addOneBook(Book book);
    public Integer setOneBook(Book book);
    public Book getBookById(Integer bookId);
    public Integer delAllBooks(List<Integer > bookIds);

    public List<Category> getCategoriesByBid(Integer bookId);
}
